package com.etone.smartAudit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etone.smartAudit.domain.AdminLog;
import com.etone.smartAudit.vo.adminLog.AdminLogVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author: 蒋学伟
 * @date: 2018-10-12 00:05:36
 * @description:
 */
@Mapper
public interface AdminLogMapper extends BaseMapper<AdminLog> {

    List<AdminLogVO> findList(@Param("adminNickName") String adminNickName, @Param("startCreateTime") Date startCreateTime, @Param("endCreateTime") Date endCreateTime, @Param("module") String module, @Param("item") String item);

    /**
     * 查找日志操作类型
     *
     * @return
     */
    List<String> findModules();

    /**
     * 查找日志操作动作
     *
     * @param module
     * @return
     */
    List<String> findItems(@Param("module") String module);
}